In Javascript, converting the following string 2022-01-07T17:12:41.494473144-05:00 to a Date object results in a Date object with value 2022-01-07T22:18:44.614Z.
Trimming the String to 2022-01-07T17:12:41.494473144 results in a Date object with value 2022-01-07T16:12:41.494Z
Expected result in both cases are a Date object with value 2022-01-07 17:12:41.
Question: How can I convert the above string representation of a timestamp to a Date object, regardless of the clock/timezone of the operating system executing the code?